package com.zhuozhengsoft.pageoffice6springboot2back.util;

import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

import java.io.IOException;
import java.net.URL;

/**
 * @Author: dong
 * @Date: 2020/11/2 10:39
 * @Version 1.0
 */
public class GetDirPathUtil {
    public static String getDirPath() throws IOException {
        Resource resource = new FileSystemResource("target/classes");
        URL resourceUrl = resource.getURL();
        String path = resourceUrl.getPath();
        return path;
    }
}
